<template>
  <div class="hello">
    <el-button type="primary" @click="showDialog">显示弹窗</el-button>
    <custom-dialog :dialogVisible="isShow" @close="closeDialog"></custom-dialog>
  </div>
</template>

<script>
import CustomDialog from "@/views/dialog/index.vue";
export default {
  components: {
    'custom-dialog': CustomDialog,
  },
  data() {
    return {
      isShow: false,
    };
  },
  methods: {
    showDialog() {
      this.isShow = true;
    },
    closeDialog(){
      this.isShow = false
    }
  },
};
</script> 

